import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        islogin: false,
        userId: "",
        state: ""
    },
    mutations: {
        increment(state, data) {
            // 变更状态
            state.islogin = data.isl
            state.userId = data.id
            state.state = data.state

        }
    },
    actions: {},
    modules: {}
})